﻿using rbac.contracts.Dto.Input;
using rbac.contracts.Dto.Output;
using rbac.domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace rbac.contracts.Interface
{
    public interface IRolePermissionService
    {

        /// <summary>
        /// 为角色分配权限
        /// </summary>
        /// <param name="roleId"></param>
        /// <param name="permissionIdList"></param>
        /// <returns></returns>
        int DistributeRolePermission(DistributeRolePermissionsInput input);

        /// <summary>
        /// 权限角色获取权限列表
        /// </summary>
        /// <param name="roleId"></param>
        /// <returns></returns>
        List<PermissionDto> GetPermissionByRoleId(int roleId);

    }
}
